package cn.virde.example.javafx;

import cn.virde.example.javafx.asyn.AsynUpdate;
import cn.virde.example.javafx.explore.Explore;
import cn.virde.example.javafx.listview.ListViewEx;
import cn.virde.example.javafx.textfield.TextFieldApp;
import javafx.event.ActionEvent;
import javafx.stage.Stage;

public class Controller {

    public void openNewWindows(ActionEvent actionEvent) throws Exception {
        AsynUpdate update = new AsynUpdate();
        update.start(new Stage());
    }

    public void openFileChoose(ActionEvent actionEvent) throws Exception {
        Explore explore = new Explore();
        explore.start(new Stage());
    }

    public void openListViewEx(ActionEvent actionEvent) throws Exception {
        ListViewEx listViewEx = new ListViewEx();
        listViewEx.start(new Stage());
    }
    public void openTextField(ActionEvent actionEvent) throws Exception {
        TextFieldApp textFieldApp = new TextFieldApp();
        textFieldApp.start(new Stage());
    }

}
